/*
 * Copyright 2010. 
 * 
 * This document may not be reproduced, distributed or used 
 * in any manner whatsoever without the expressed written 
 * permission of xrkol Corp. 
 * 
 * $Rev: Rev $
 * $Author: Author $
 * $LastChangedDate: LastChangedDate $
 *
 */

package com.xrkol.sharelib.service;

import java.util.List;

import com.xrkol.sharelib.entity.Adult;
import com.xrkol.sharelib.entity.Conversation;
import com.xrkol.sharelib.entity.Teacher;

/**
 * @author peng.xia
 *
 */
public interface ConversationService extends BaseService<Conversation, String>{

    /**
     * 根据老师获取会话列表
     * 
     * @param page
     * @return
     */
    List<Conversation> getConversationsByTeacher(Teacher teacher,Integer page);

    /**
     * 根据老师和联系人查找对话
     * 
     * @param teacher
     * @param adult
     * @return
     */
    Conversation getConversationByTeacherAndAdult(Teacher teacher, Adult adult);

    /**
     * 根据联系人查找会话列表
     * 
     * @param adult
     * @return
     */
    List<Conversation> getConversationsByAdult(Adult adult);


}
